var { randomUtils, logUtils } = require("./utils/index");
var { App } = require("./base/index");
var fanQieCGetTime = require("./apps/fanQieChangTing/aGetTime");
var fanQieYGetTime = require("./apps/fanQieChangTingYinYue/aGetTime");
var fanQieC = new App("番茄畅听", {
  maxRunTCount: 3,
});
fanQieC.runTest = function (count) {
  sleep(randomUtils.getRandom(2, 10, 1000));
};
fanQieC.run = function () {
  logUtils.info(this.name + "开始");
  fanQieCGetTime.flow();
};
var fanQieY = new App("番茄畅听音乐版", {
  maxRunTCount: 3,
});

fanQieY.runTest = function (count) {
  sleep(randomUtils.getRandom(2, 10, 1000));
};
fanQieY.run = function () {
  logUtils.info(this.name + "开始");
  fanQieYGetTime.flow();
};

for (var index = 0; index < 5; index++) {
  fanQieC.main();
  sleep(randomUtils.getRandom(2, 10, 1000));
  fanQieY.main();
}
